package com.candy.candyorder;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

// https://github.com/seata/seata-samples/tree/master/springboot-shardingsphere-seata
//@SpringBootApplication
//@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) // shardingJdbc+mybatisPlus分库分表  4.0.0-RC1
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, DruidDataSourceAutoConfigure.class})
@MapperScan("com.candy.candyorder.mapper")
public class CandyOrderApplication {

    // seata1.5.1 AT模式 + shardingsphere
    public static void main(String[] args) {
        SpringApplication.run(CandyOrderApplication.class, args);
    }

}
